package com.autoagent.ai_live_master.common.event;

import lombok.Data;
import lombok.EqualsAndHashCode;
import org.springframework.context.ApplicationEvent;

/**
 * 直播计划事件
 * 用于在模块间传递直播计划相关的操作事件
 */
@Data
@EqualsAndHashCode(callSuper = false)
public class LiveStreamingPlanEvent extends ApplicationEvent {
    
    private final String roomId;
    private final String action; // "start" 或 "stop"
    private final Long planId;
    private final Long scriptConfigId;
    
    public LiveStreamingPlanEvent(Object source, String roomId, String action, Long planId, Long scriptConfigId) {
        super(source);
        this.roomId = roomId;
        this.action = action;
        this.planId = planId;
        this.scriptConfigId = scriptConfigId;
    }
}
